package com.example.app.components


import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Card
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

@Composable
fun CardSample() {
    Card(
        backgroundColor = Color.Cyan,
        contentColor = Color.Red,
        border = BorderStroke(1.dp, Color.Green)
    ) {
        Text(text = "wsh3038971", modifier = Modifier.padding(10.dp))
    }
}

@Preview(
    showSystemUi = false
)
@Composable
fun CardSamplePreview() {
    CardSample()
}

